home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amoszine 11
/
Amoszine 11 (Disk 2 of 2).adf
/
Loads_Of_Source.lha
/
screenwipes5.amos
/
screenwipes5.amosSourceCode
< prev
Wrap
AMOS Source Code
|
1980-11-12
|
2KB
|
98 lines
Dim X#(360),Y#(360)
Global X#(),Y#()
Curs Off : Flash Off : Cls 0
'************to view all the screen wipes just run this
'*********press keys 1-5 to view procedures
'get screen from bank 14
Unpack 14 To 0
OPS
REDO:
'call screen proc
Repeat
K$=Inkey$
If K$="1" : PIC9 : DNE=True : Screen 1 : Cls 0 : End If
If K$="2" : PIC10 : Screen 1 : Cls 0 : DNE=True : End If
If K$="3" : PIC11 : Screen 1 : Cls 0 : DNE=True : End If
If K$="4" : PIC12 : Screen 1 : Cls 0 : DNE=True : End If
If K$="5" : PIC13 : Screen 1 : Cls 0 : DNE=True : End If
Until DNE
Wait 30
DNE=0
Goto REDO
Procedure OPS
Screen Open 1,320,256,32,Lowres : Curs Off : Flash Off : Cls 0
Get Palette(0)
End Proc
Procedure PIC9
Degree
For F=0 To 360
X#(F)=Sin(F)
Y#(F)=Cos(F)
Next F
For RAD=360 To 1 Step -16
For F=0 To 360 Step 4
BEGX=160+X#(F)*RAD
BEGY=128+Y#(F)*RAD
ENX=BEGX+30
ENY=BEGY+30
Screen Copy 0,BEGX,BEGY,ENX,ENY To 1,BEGX,BEGY
Next F
Next RAD
End Proc
Procedure PIC10
Degree
For F=0 To 360
X#(F)=160+160*Sin(F)
Y#(F)=128+128*Cos(F)
Next F
For F=0 To 360
XBEG=160
YBEG=128
XEND=X#(F)
YEND=Y#(F)
If XEND<XBEG Then Swap XEND,XBEG
If YEND<YBEG Then Swap YEND,YBEG
Screen Copy 0,XBEG,YBEG,XEND,YEND To 1,XBEG,YBEG
Next F
End Proc
Procedure PIC11
For Y1=0 To 256
X1#=X1#+0.5
C1=X1#*2
Screen Copy 0,X1#,Y1,X1#+(320.0-C1),Y1+1 To 1,X1#,Y1
Wait Vbl
Next Y1
For Y=256 To 0 Step -1
Screen Copy 0,0,Y,320,Y+1 To 1,0,Y
Wait Vbl
Next Y
End Proc
Procedure PIC12
X1#=0
For Y1=0 To 128
X1#=X1#+1.5
C1=X1#*2
Screen Copy 0,X1#,Y1,X1#+(320.0-C1),Y1+1 To 1,X1#,Y1
Wait Vbl
Next Y1
X1#=160
C1#=X1#
For Y1=128 To 256
X1#=X1#-1.5
C1#=C1#+1.5
Screen Copy 0,X1#,Y1,C1#,Y1+1 To 1,X1#,Y1
Wait Vbl
Next Y1
For T=0 To 165
Screen Copy 0,160-T,0,(160-T)+1,255 To 1,160-T,0
Screen Copy 0,(160+T)-1,0,160+T,255 To 1,159+T,0
Wait Vbl
Next T
End Proc
Procedure PIC13
For Y=0 To 256 Step 20
For X=0 To 320 Step 3
Screen Copy 0,X,Y,X+3,Y+20 To 1,X,Y
Next X
Next Y
End Proc